---@class TREE_TYPE_CONFIG
local TREE_TYPE_CONFIG = {}
local this = TREE_TYPE_CONFIG
this.RUN_TREE_DATA_KEY = "RUN_TREE_DATA_KEY"

this.TYPE = {
    NONE = "空",
    TEST_CONDITION = "测试条件",
    TEST = "测试",
    RANDOM_TARGET = "随机目标策略",
    USE_ITEM = "使用物品",
    HUNTER_CFG = "猎人配置",
    SWORDSMAN_CFG = "剑客配置",
    GET_WAREHOUSE = "取仓",
}
local TYPE = this.TYPE

-- 行为类型
this.TYPE_OPTIONS = {
    {
        name = TYPE.TEST,
        value = TYPE.TEST,
    },
    {
        name = TYPE.RANDOM_TARGET,
        value = TYPE.RANDOM_TARGET,
    },
    {
        name = TYPE.USE_ITEM,
        value = TYPE.USE_ITEM,
    },
    {
        name = TYPE.SWORDSMAN_CFG,
        value = TYPE.SWORDSMAN_CFG,
    },
    {
        name = TYPE.HUNTER_CFG,
        value = TYPE.HUNTER_CFG,
    },
    {
        name = TYPE.GET_WAREHOUSE,
        value = TYPE.GET_WAREHOUSE,
    },
}

-- 条件类型
this.CONDITION_TYPE_OPTIONS = {
    {
        name = TYPE.NONE,
        value = TYPE.NONE,
    },
    {
        name = TYPE.TEST_CONDITION,
        value = TYPE.TEST_CONDITION,
    }
}

-- 配置文件
this.CONFIG = {
    [TYPE.TEST] = { filePath = "action/test.json" },
    [TYPE.TEST_CONDITION] = { filePath = "condition/test_condition.json" },
    [TYPE.RANDOM_TARGET] = { filePath = "strategic/random_strategic.json" },
    [TYPE.USE_ITEM] = { filePath = "common/use_item.json" },
    [TYPE.HUNTER_CFG] = { filePath = "common/hunter_cfg.json" },
    [TYPE.SWORDSMAN_CFG] = { filePath = "common/swordsman_cfg.json" },
    [TYPE.GET_WAREHOUSE] = { filePath = "common/get_warehouse.json" },
}

return this
